package com.yiyuzi.admin.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiyuzi.admin.common.domain.PageResultDTO;
import com.yiyuzi.admin.common.domain.ResponseDTO;
import com.yiyuzi.admin.user.domain.dto.UserRoleAddDTO;
import com.yiyuzi.admin.user.domain.dto.UserRoleDTO;
import com.yiyuzi.admin.user.domain.dto.UserRoleQueryDTO;
import com.yiyuzi.admin.user.domain.entity.UserRoleEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author yiyuzi
 * @date 2021/5/8 9:43
 */

@Service
public interface UserRoleService extends IService<UserRoleEntity> {

    UserRoleDTO findById(Long id);

    UserRoleDTO findOne(UserRoleQueryDTO queryDTO);

    PageResultDTO<UserRoleDTO> findPage(UserRoleQueryDTO queryDTO);

    boolean add(UserRoleAddDTO userRoleAddDTO);

    boolean add(List<UserRoleAddDTO> list);

    boolean deleteList(List<Long> list);
}
